const http=require('http');

const server=http.createServer((req,res)=>{
    let data={
      url:req.url,
      headers:req.headers
    };
   res.write(JSON.stringify(data,null,2));
   res.end();
});

server.listen(4000,()=>{
    console.log('JD spider test server @4000',new Date());
});